{% extends "base.html" %} {%- block styles %} {{ super() }}
<link href="/static/css/common.css" rel="stylesheet" type="text/css" /> {% endblock styles -%} {% block title %}中传放心传-分享{% endblock %} {% block body %} {% if error %}
<div class="error">
    {{ error }}
</div>
{% else %}


<body class="share_body">
    <form action="" method="post" class="share_form">
        {{ form.csrf_token }} {% if form.access_com %}
        <br> {{ form.access_com.label }} : {{ form.access_com }}
        <br><br> {{ form.submit }} {% if com_error %}
        <div class="error">
            <br> {{ com_error }}
        </div>
        {% endif %} {% else %}
        <div class="file_display">
            <span class="label">{{ form.user_name.label }} : {{ form.user_name.data }}</span>
            <br> <span class="label">{{ form.file_name.label }}</span> : <br>
            <div style="text-align: center; font-size: 25px; color: #110000"> {{ form.file_name.data }}</div>
        </div>

        <br>
        <div style="text-align: center;">{% if form.download %}
            <button class="btn-download">{{ form.download }}</button>{% endif %}
            <button id="download_e_btn" class="btn-download">{{ form.download_e }}</button>
            <button id="download_s_btn" class="btn-download">{{ form.download_s }}</button>
            <button id="download_hash_btn" class="btn-download">{{ form.download_hash }}</button>
        </div> {% endif %}
        <div class="empty-line"></div>
    </form>
</body>
{% endif %} {% endblock %}